import request from '../utils/request'
// import qs from 'qs'
// 获取banner结构
const fetchBanner = (params = {}) => request.get('/conner/banner/list', { params })
// 获取分类列表
const fetchCates = (params = {}) => request.get('/conner/shop/goods/category/all', { params })
// 获取商品列表
// const fetchItems = (params = {}) => request.post('/conner/shop/goods/list', qs.stringify(params))
const fetchItems = (params = {}) => request.post('/conner/shop/goods/list', params)
// 获取商品详情
const fetchItem = (params = {}) => request.get('/conner/shop/goods/detail', { params })
export {
  fetchBanner,
  fetchCates,
  fetchItems,
  fetchItem
}
